package com.fangcun.mapper;

import java.util.List;

import com.fangcun.entity.AdminRole;

public interface AdminRoleMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AdminRole record);

	int insertSelective(AdminRole record);

	AdminRole selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdminRole record);

	int updateByPrimaryKey(AdminRole record);

	AdminRole selectByUserId(Long userId);

	List<AdminRole> getRoleList(AdminRole role);
	/**根据部门id 查询角色**/
	List<AdminRole> selectDepartmentRole();
}